/**
 * Created by Administrator on 2017/4/17.
 */
import {DomSanitizer} from '@angular/platform-browser'
import {PipeTransform, Pipe} from "@angular/core";

@Pipe({name: 'safeHtml'})
export class SafeHtmlPipe implements PipeTransform {
    constructor(private sanitized: DomSanitizer) {
    }

    transform(value:any) {
        // console.log(this.sanitized.bypassSecurityTrustHtml(value))
        return this.sanitized.bypassSecurityTrustHtml(value);
    }
}